package com.tg.base.list.tgnode;

import java.util.Optional;
import java.util.function.Function;
import java.util.function.Supplier;

public class TgNode {




    public Object e;

    public TgNode next;

    public TgNode pre;

    public TgNode() {

    }

    public Supplier<TgResult> commit;

    public Function<Object, Boolean> rollback;

    public TgResult result;

    public TgNode(Object e) {
        this.e = e;
        next = null;
        pre = null;
    }

    public TgNode(Supplier<TgResult> commit, Function<Object, Boolean> rollback) {
        this.commit = commit;
        this.rollback = rollback;
        next = null;
        pre = null;
    }
}
